package com.xzx.spark.core.simulation

/**
 *
 * ${DESCRIPTION}
 *
 * @author xinzhixuan
 * @version 1.0
 * @date 2021-12-25 2:07 PM
 */
class Task extends Serializable {

  var data: List[Int] = _

  var logic: Int => Int = _

  def compute(): List[Int] = {
    data.map(logic)
  }
}
